import { Description, Feature, Glyph } from '$lib/components';
import { Types, defineComponent } from '$lib/ecs';

export const Stairs = defineComponent('Stairs', {
  direction: Types.i16,
});

export const stairUpTemplate = [
  [Feature],
  [Stairs, {
    direction: 1,
  }],
  [Glyph, {
    'glyph': '<',
    'color': '#387',
  }],
  [Description, {
    summary: 'stairs up',
    description: "You can climb up here"
  }],
];

export const stairDownTemplate = [
  [Feature],
  [Stairs, {
    direction: -1,
  }],
  [Glyph, {
    'glyph': '>',
    'color': '#387',
  }],
  [Description, {
    summary: 'stairs down',
    description: "You can climb down here"
  }],
];
